package com.yxh.springboothelloworld.controller.ftl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 整合freemarker
 * @Description TODO
 * @Author： yanxh<br>
 * @Date 2019/10/8 16:54<br>
 * @Version 1.0<br>
 */
@Controller
@RequestMapping("/ftl")
public class FtlIndexController {

    @RequestMapping("/index")
    public String ftlIndex(Map<String, Object> params){
        params.put("name", "闫晓辉");
        params.put("age", "25");
        params.put("sex", "男");
        return "index";
    }

}
